dofile ("libBarre.lua")

val = 0

while not Keys.newPress.Start do

Controls.read()

startDrawing()

barrePourcent(SCREEN_UP, 0, 0, val, true, 0, 31, 0)

if Keys.held.Right then val = val + 1 end
if Keys.held.Left then val = val - 1 end

barrePixels(SCREEN_DOWN, 0, 0, 50, 200, 31, 0, 31)

stopDrawing()

end
